<base href="${CONTEXT_PATH}/" />
<div class="pageContent">
	<form method="post" action="jms/material/<#if (material.id)??>update<#else>save</#if>"
		  class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" id="id" name="material.id"  value="${(material.id)!}">
		<div class="pageFormContent" layoutH="56">


			<dl>
				<dt>名称：</dt>
				<dd><input type="text" name="material.name"  value="${(material.name)!}" class="required"  ></dd>
			</dl>
			<dl>
				<dt>规格型号：</dt>
				<dd><input type="text" name="material.model"  value="${(material.model)!}" class="required"></dd>
			</dl>
			<dl>
				<dt>供应商：</dt>
				<dd><input type="text" name="material.supplier"  value="${(material.supplier)!}" class="required"></dd>
			</dl>
			<dl>
				<dt>目录：</dt>
				<dd>
					<select name="material.catalogue" class="required">
						<option value="">---请选择---</option>
						<option value="抱杆类" <#if (material)?? && material.catalogue=='抱杆类'>selected="selected"</#if>>抱杆类</option>
						<option value="电力电缆" <#if (material)?? && material.catalogue=='电力电缆'>selected="selected"</#if>>电力电缆</option>
						<option value="户外机柜" <#if (material)?? && material.catalogue=='户外机柜'>selected="selected"</#if>>户外机柜</option>
						<option value="开关电源" <#if (material)?? && material.catalogue=='开关电源'>selected="selected"</#if>>开关电源</option>
						<option value="室外机柜" <#if (material)?? && material.catalogue=='室外机柜'>selected="selected"</#if>>室外机柜</option>

					</select>
				</dd>
			</dl>
			<dl>
				<dt>计量单位：</dt>
				<dd>
					<select name="material.unit" class="required">
						<option value="">---请选择---</option>
						<option value="米" <#if (material)?? && material.unit=='米'>selected="selected"</#if>>米</option>
						<option value="根" <#if (material)?? && material.unit=='根'>selected="selected"</#if>>根</option>
						<option value="只" <#if (material)?? && material.unit=='只'>selected="selected"</#if>>只</option>
						<option value="套" <#if (material)?? && material.unit=='套'>selected="selected"</#if>>套</option>
						<option value="盒" <#if (material)?? && material.unit=='盒'>selected="selected"</#if>>盒</option>
						<option value="件" <#if (material)?? && material.unit=='件'>selected="selected"</#if>>件</option>
						<option value="台" <#if (material)?? && material.unit=='台'>selected="selected"</#if>>台</option>

					</select>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>
